var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    username: String,
    userId: String,
    phone: String,
    date: String,
    email: String,
    address: String,
    sex: String

});
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('User', schema); // Model.paginate()